import {defineConfig} from "vite";
import uni from "@dcloudio/vite-plugin-uni";
import tailwindcss from 'tailwindcss';
// @ts-ignore
import uniTailwind from '@uni-helper/vite-plugin-uni-tailwind';

// https://vitejs.dev/config/
export default defineConfig({
    build: {
        // 在这里修改静态资源路径
        assetsDir: './h5assets', // 指定静态文件引入路径为 "./assets"

    },
    css: {
        postcss: {
            plugins: [
                tailwindcss(),
            ],
        },
    },
    plugins: [uni(), uniTailwind()],
});
